<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>自定义登录页</title>
</head>
<body>
<h1>自定义登录页</h1>
<div th:if="${param.error}">Invalid username and password</div>
<div th:if="${param.loout}">You have been logged out.</div>
<!-- 注意这个/login是Spring Security提供的默认的位置 -->
<form th:action="@{/login}" method="post">
    <div>
        <label>User Name:<input type="text" name="username"></label>
    </div>
    <div>
        <label>Password:<input type="password" name="password"></label>
    </div>
    <div><input type="submit" value="Sigin In"></div>
</form>
</body>
</html>